home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 6 / The Arsenal Files 6 (Arsenal Computer).ISO / prg_casm / jlvesa11.zip / JLVESA16.ASM < prev    next >
Assembly Source File  |  1995-11-14  |  622b  |  44 lines

  1. ; This file is part of JLVESA-library
  2. ;
  3. ; Copyright 1994 Johannes Lehtinen
  4. ; All rights reserved
  5.  
  6. model large,c
  7. p386
  8.  
  9. include "jlvesads.asm"
  10.  
  11. segment jlvesa16_TEXT USE16 'CODE'
  12. assume cs:jlvesa16_TEXT
  13.  
  14. ; void JVScreen_SetActive(JLUDword offset)
  15. ;
  16. ; Set start offset of active video page
  17.  
  18. proc JVScreen_SetActive far
  19.    public JVScreen_SetActive
  20.  
  21.    push  bp
  22.    mov   bp,sp
  23.    push  ds
  24.  
  25.    mov   ax,JLVesa_Data
  26.    mov   ds,ax
  27.  
  28.    ; Read new offset
  29.  
  30.    mov   eax,[ss:bp+6]
  31.    mov   [ds:AStart],eax
  32.  
  33.    ; Return
  34.  
  35.    pop   ds
  36.    pop   bp
  37.    retf
  38.  
  39. endp JVScreen_SetActive
  40.  
  41. ends
  42.  
  43. end
  44.